home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
Principal.java
< prev
next >
Wrap
Text File
|
1998-10-14
|
2KB
|
67 lines
/*
* @(#)Principal.java 1.13 98/07/01
*
* Copyright 1995-1998 by Sun Microsystems, Inc.,
* 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
* All rights reserved.
*
* This software is the confidential and proprietary information
* of Sun Microsystems, Inc. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Sun.
*/
package java.security;
/**
* This interface represents a principal. A principal can be an
* individual, a corporation, a program thread; anything which can
* have an identity. See the <a href="../guide/security/Acl.html">ACL
* white paper</a> for more information.
*
* @see Identity
* @see Certificate
* @see java.security.acl.Acl
* @see java.security.acl.Group
*
* @version 1.13, 98/10/05
* @author Satish Dharmaraj
*/
public interface Principal {
/**
* Compares this principal to the specified object. Returns true
* if the object passed in matches the principal represented by
* the implementation of this interface.
*
* @param another the principal to compare with.
*
* @return true if
* the principal passed in is the same as that encapsulated by
* this principal, false otherwise.
*/
public boolean equals(Object another);
/**
* Returns a string representation of this principal.
*
* @return a string representation of this principal.
*/
public String toString();
/**
* Returns a hashcode for this principal.
*
* @return a hashcode for this principal.
*/
public int hashCode();
/**
* Returns the name of this principal.
*
* @return the name of this principal.
*/
public String getName();
}